package com.demo.boot.controller;

import com.demo.boot.framework.util.DateUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class DemoController {

    @RequestMapping("test")
    public String test(){
        return "test";
    }

    @RequestMapping("test2")
    public String test2(){
        return "test2";
    }

    @RequestMapping("date")
    public String date(){
        return DateUtil.getCurDate().getTime()+"";
    }
}
